package team.zero.lemon.module.sys.dao;

import team.zero.lemon.module.sys.entity.User;
import team.zero.lemon.common.persistence.ICrudDao;
import team.zero.lemon.common.persistence.annotation.MyBatisDao;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.Date;
import java.util.List;

/**
 * Created by bolin on 2015/5/18.
 */
@MyBatisDao
public interface IUserDao extends ICrudDao<User> {

    public int deleteAll();
    List<User> findPage(User user);
    /**
     * 验证用户登陆，用户名查询用户信息
     *
     * @param user
     * @return
     */
    User getByLoginName(User user);
    int updatePassword(@Param("id") Integer id, @Param("password") String password,@Param("updator") Integer updator,@Param("updateTime") Date updateTime);
}
